Skip to content

Support image[] parameter for /v1/images/edits#2321

Open
sagebind wants to merge 2 commits into
lemonade-sdk:mainfrom
sagebind:fix/1963-image-edit-array-syntax
Open

Support image[] parameter for /v1/images/edits#2321
sagebind wants to merge 2 commits into
lemonade-sdk:mainfrom
sagebind:fix/1963-image-edit-array-syntax

Conversation

@sagebind

Copy link
Copy Markdown

Some clients may send the image to be edited to the image edit API using the conventional (but not strictly standard) [] suffix to indicate an array of field values in the form, meaning the actual form field name will be image[] instead of image. OpenAI has an example accepting this, and Open WebUI does this explicitly.

To make the Lemonade equivalent endpoint more compliant and compatible, it should also accept the image using this naming syntax, even if it currently does not support more than one image, because some clients always use this naming even when sending only one image to be edited.

Fixes #1963

@github-actions github-actions Bot added area::api HTTP REST API surface and route handlers enhancement New feature or request labels Jun 19, 2026
@sagebind sagebind marked this pull request as ready for review June 19, 2026 17:34
@sagebind

Copy link
Copy Markdown
Author

I was able to test a build of this branch on my local setup with Open WebUI, and was able to confirm that this allows image edit tool use in Open WebUI to be compatible with Lemonade, fixing #1963. Here's a screenshot of an example chat in Open WebUI, with LLM, generate, and edit all using Lemonade:

Screenshot 2026-06-19 at 22-37-41 Open WebUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area::api HTTP REST API surface and route handlers enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image Editing Not Working Correctly - OpenWebUI

1 participant